package com.liaoyifan.core.query;

import com.liaoyifan.core.constant.Constants;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

@SuppressWarnings("unused")
@Data
public class DateTimeEvent implements Serializable {

    @Serial private static final long serialVersionUID = 1L;

    @Schema(description = "开始时间")
    @DateTimeFormat(pattern = Constants.DATETIME_PATTERN)
    private LocalDateTime start;

    @Schema(description = "结束时间")
    @DateTimeFormat(pattern = Constants.DATETIME_PATTERN)
    private LocalDateTime end;
}
